package com.ss.android.article.base.feature.detail2.a.c;

import android.view.View;

import com.ss.android.article.base.feature.detail.model.PhoneAdsData;
import com.ss.android.b.a.AdsAppItem;
import com.ss.android.b.a.AdsAppItem.b;
import com.ss.android.b.a.BaseAdsData;

final class c implements View.OnClickListener {
    private final DetailAdGroupPicLayout b;
    private final BaseAdsData a;

    c(DetailAdGroupPicLayout arg1, BaseAdsData arg2) {
        this.b = arg1;
        this.a = arg2;
    }

    public final void onClick(View arg9) {
        String v2 = (this.a instanceof PhoneAdsData) ? "detail_call" : "detail_ad";
        if(this.b.b != null) {
            this.b.b.b();
        }
        else {
            AdsAppItem.a(this.b.getContext(), this.a.openUrl, this.a.webUrl, this.a.webTitle, this.a.orientation, new b(this.b.getContext(), v2, "click", this.a.id, this.a.logExtra, 1));
        }
    }
}

